<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<form id="DingDanForm">
	<s:hidden name="model.id" id='ids'></s:hidden>
	<s:hidden name="model.addressId"></s:hidden>
	<s:hidden name="model.userId"></s:hidden>
	<s:hidden name="model.crateDate"></s:hidden>
	<s:hidden name="model.updateDate"></s:hidden>
	
	<s:hidden name="model.mendianId" id="mendianIds"></s:hidden>
	<s:hidden name="model.mendImgUrl" id="mendImgUrl"></s:hidden>
	
	<s:hidden name="model.fuwuzhanId" id="fuwuzhanId"></s:hidden>
	<s:hidden name="model.invalidDate" id="invalidDate"></s:hidden>
	
	<s:hidden name="model.state" id='hiddenState'></s:hidden>
	<s:hidden name="model.lat"></s:hidden>
	<s:hidden name="model.lng"></s:hidden>
	<s:hidden name="userType"  id="hiddenUserType" />
	<table width="100%" border="0" id="DingDanTable" cellpadding="5px;"
		cellspacing="0" class='edit_table'>
		<tbody>
			<tr>
				<th>
					订单号
				</th>
				<td>
				${model.dingDanUid}
				<s:hidden name="model.dingDanUid"></s:hidden>
				</td>
				<th>
					一卡通卡号
				</th>
				<td>
				${model.carNo}
				<s:hidden name="model.carNo"></s:hidden>
				</td>
				
			</tr>
			<tr>
				<th>
					客户名称
				</th>
				<td>
				${model.kehuName}
				<s:hidden name="model.kehuName"></s:hidden>
				</td>
				<th>
					客户电话
				</th>
				<td>
				${model.lxTel}
				<s:hidden name="model.lxTel"></s:hidden>
				</td>
			</tr>
			<tr>
			   <th>
					收货地址
				</th>
				<td>
				${model.province}${model.city}${model.town}
				<br>${model.address}
				
				<s:hidden name="model.province"></s:hidden>
				<s:hidden name="model.city"></s:hidden>
				<s:hidden name="model.town"></s:hidden>
				<s:hidden name="model.address"></s:hidden>
				</td>
				<th>
					服务方式
				</th>
				<td>
				 <s:if test='"1"==model.buyType'>送货上门</s:if> 
				 <s:elseif test='"2"==model.buyType'>门店自取</s:elseif> 
				<s:hidden name="model.buyType"></s:hidden>
				</td>
			</tr>
			<tr>
				
			</tr>
			<s:iterator value="model.goods" var="good" status="st">
			<tr>
				<td colspan="4">
					<s:property value="#st.count"/>.商品信息 
				</td>
			</tr>
			<tr>
				<th>
					商品名称
				</th>
				<td>
				${good.goodsName}
				</td>
				<th>
					商品数量
				</th>
				<td>
				${good.num}
				</td>
			</tr>
			<tr>
				<th>
					商品单价
				</th>
				<td>
				${good.price}
				</td>
				<th>
					商品型号
				</th>
				<td>
				${good.guige}
				</td>
			</tr>
			<tr>
				<th>
					商品品牌
				</th>
				<td>
				${good.pinpai}
				</td>
				<th>
					商品型号
				</th>
				<td>
				${good.guige}
				</td>
			</tr>			
			</s:iterator>
			
			<tr>
				<th>
					商品总价
				</th>
				<td>
				￥ ${model.goodsPrice}
				<s:hidden name="model.goodsPrice"></s:hidden>
				</td>
				<th>
					服务费用
				</th>
				<td>
				￥ ${model.servicePrice}
				<s:hidden name="model.servicePrice"></s:hidden>
				</td>
			</tr>
			<tr>
				<td colspan="4" style="text-align: right;">
					总计价格 ￥  ${model.allPrice}
				</td>
			</tr>
			<tr>
				<th>
					门店名称
				</th>
				<td>
				<div id="mdmcId">${model.mendName }</div>
				</td>
				<th>
					门店联系人
				</th>
				<td>
				<div id="mdlxrId">${model.mendLxr}</div>
				</td>
			</tr>
			
			<tr>
				<th>
					门店电话
				</th>
				<td>
				<div id="mdmcId">${model.mendLxTel}</div>
				</td>
				<th>
					门店地址
				</th>
				<td>
				<div id="mdmcId">${model.mendAddr}</div>
				</td>
			</tr>
			<tr>
			    <th>
					订单状态
				</th>
				<td id='state1'>
				 <s:if test='"0"==model.state && "1"==model.buyType'>待发货</s:if> 
				 <s:elseif test='"0"==model.state && "2"==model.buyType'>未处理</s:elseif> 
				 
				 <s:elseif test='"1"==model.state && "1"==model.buyType'>待收货</s:elseif> 
				 <s:elseif test='"1"==model.state && "2"==model.buyType'>待提</s:elseif> 
				 
				 
				 <s:elseif test='"2"==model.state'>完成</s:elseif>						
				 <s:elseif test='"3"==model.state'>作废</s:elseif> 				 
				 
				</td>
				<th>
					服务站名称
				</th>
				<td>
				<div>${model.fwzName }</div>
				</td>
			</tr>
			
		</tbody>
	</table>
	 <div id='parentDiv' style="display: none"><div id='kuDialogDiv' style="display: none"></div></div>
	 <iframe name="downloadFileIframe" style="display:none"></iframe> 
</form>
